﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace WxOpenPlatLibCore
{
    public class WXConfig
    {
        //public const string sMAppID = "wx58d82c8a28fb5044";
        public const string sToken = "jmbbs";
        public const string sAppID = "wx497982456aa0cf50";
        public const string sAppSecret = "af7c95d27e27e94d8c855de57d4f8a31";
        public const string sEncodingAESKey = "4d5d32ab03af73957ee295f961828bfdee7bc10020c";

        /// <summary>
        /// 获取根目录
        /// </summary>
        /// <returns></returns>
        public static string GetRootPath()
        {
            string a = System.Reflection.Assembly.GetEntryAssembly().Location;
            List<string> _str = a.Split(System.IO.Path.DirectorySeparatorChar).ToList();
            _str.RemoveAt(_str.Count - 1);
            string path = string.Join(System.IO.Path.DirectorySeparatorChar.ToString(), _str);
            
            return @"C:\websites\openweixin\publish";
        }
    }
}
